const app = getApp();

Component({
    "options": {
        styleIsolation: 'isolated'
    },

    data: {
        date: '请选择日期'
    },

    /**
     * 组件的方法列表
     */
    methods: {
        onchange: function (e) {
            var value = e.detail.value;
            this.setData({
                date: value
            });
            this.triggerEvent('input', {value: value})
        }
    }
});
